(function($){
	$.fn.tish = function() {

 		return this.each(function() {
 			var lineHeight = parseInt(($(this).css('line-height')).replace(/[^0-9]/g, ''));

			var height = $(this).children("div.tish-inner").height();
			
			var lines = height/lineHeight;
			
			var lineUl = $('<ul/>').addClass('tish-lines');
			lineUl.css('height', $(this).css('height'));
			
			for(var i=1;i<=lines;i++) {
				lineUl.append('<li>' + i + '</li>');
			}
			
			lineUl.insertBefore($(this));
			
			$(this).scroll(function() {
				lineUl.scrollTop($(this).scrollTop());
			});
 			
		});
	};
})(jQuery);